Virtual reality based analgesic therapy